/*
 * @Author: wangming
 * @Date: 2021-07-05 15:01:24
 * @LastEditors: wangming
 * @LastEditTime: 2022-08-03 11:52:05
 * @FilePath: /hanma-paas-fed/Users/wm/瀚川/hanma-application-designer-fed/src/pages/designUniversal/__components__/dynamicForm/rightModel/components/hmEventOptions/eventTypeList.js
 * @Description: 
 */
export default [
    {
        label: "上传成功后", value: "afterupload", tagNames: ['hlFileImage', 'hlFile'],
        options: ['value']
    },
    {
        label: "删除成功后", value: "afterdelete", tagNames: ['hlFileImage', 'hlFile'],
        options: ['value']
    },
    {
        label: "删除节点", value: "deleteNode", tagNames: ['hlProcess'],
        options: ['node']
    },
    {
        label: "获取焦点", value: "focus", tagNames: [
            'hlInput',
            'hlTextarea',
        ],
        options: ['value']
    },
    {
        label: "失去焦点", value: "blur", tagNames: [
            'hlInput',
            'hlTextarea',
            'hlInputNumber',
            'hlMoneyInput',
        ],
        options: ['value']
    },
    {
        label: "值发生变化", value: "change", tagNames: [
            'hlSwitch',
            'hlInput',
            'hlTextarea',
            'hlInputNumber',
            'hlMoneyInput',
            'hlSelect',
            'hlRadio',
            'hlCheckbox',
            'hlDatePicker',
            'hlTimePicker',
            'hlSelectTree',
            'hlPersonnel',
            'hlDepartment',
            'hlLayoutTab',
            'hlLayoutItem',
            'hlQrcodeDecoder',
            'hlVueComponent',
            'hlColorPicker',
            'hlModelSelect'
        ],
        options: ['value']
    },
    {
        label: '按键松开', value: 'keyup', tagNames: ['hlInput', 'hlTextarea', 'hlInputNumber', 'hlMoneyInput'], options: ['keyCode']
    },
    { label: '回车事件', value: 'enter', tagNames: ['hlInput', 'hlInputNumber', 'hlMoneyInput', 'hlQrcodeDecoder'], options: ['value'] },
    { label: '点击事件', value: 'click', tagNames: ['hlTag', 'hlCalendar', 'hlProcess', 'hlStep', 'hlMindmap'], options: ['value'] },
    { label: '点击树节点', value: 'click', tagNames: ['hlTree', 'hlTreeListSelect'], options: ['value'] },
    { label: '点击表格行', value: 'rowclick', tagNames: ['hlTableList', 'hlTableForChildren', 'hlTableForRelation'], options: ['row'] },
    { label: '选中复选框', value: 'selectCheckBox', tagNames: ['hlTableList', 'hlTableForChildren', 'hlTableForRelation'], options: ['addrows'] },
    { label: '取消复选框', value: 'cancelCheckBox', tagNames: ['hlTableList', 'hlTableForChildren', 'hlTableForRelation'], options: ['cancelrows'] },
    { label: '表单重置', value: 'handlereset', tagNames: ['hlTableList', 'hlTableForChildren', 'hlTableForRelation'] },
    { label: '表单查询前', value: 'handlsearch', tagNames: ['hlTableList', 'hlCalendar', 'hlTableForChildren', 'hlTableForRelation'], options: ['queryData'] },
    { label: '表单查询后', value: 'aftersearch', tagNames: ['hlTableList', 'hlCalendar', 'hlTableForChildren', 'hlTableForRelation'], options: ['tableData'] },
    { label: '表单校验', value: 'regexps', tagNames: ['hlInput', 'hlTextarea', 'hlSelect', 'hlCustom', 'hlVueComponent', 'hlInputNumber', 'hlMoneyInput', 'hlRadio', 'hlCheckbox', 'hlDatePicker', 'hlFile', 'hlFileImage'], options: ['value'] },
]

export const ButtonEvents = [
    { label: '点击事件', value: 'click', types: ['auto', 'form_reset', 'process_start', 'process_handle', 'link_redirect', 'print'] },
    { label: '表单提交前', value: 'beforeClick', types: ['form_submit', 'submit_close', 'process_handle'] },
    { label: '表单提交后', value: 'afterclick', types: ['form_submit', 'process_handle'] },
    { label: '文件导入前', value: 'beforeUpload', options: ['values'], types: ['import'] },
    { label: '文件导入后', value: 'aftercUpload', types: ['import'] },
    { label: '文件打印后', value: 'afterPrint', types: ['print'] },
]